package com.team.controller;

import com.team.service.StatisticalService;
import com.team.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/10/17 9:41
 * @Description
 */
@RestController
@RequestMapping("statistical")
public class StatisticalController {
    @Autowired
    private StatisticalService statisticalService;

    /**
     * 统计科室所有在职信息
     *
     * @return {@link Result}
     */
    @RequestMapping("sectionInfo")
    public Result sectionInfo(){
        return statisticalService.sectionInfo();
    }

    /**
     * 统计学历edu信息
     *
     * @return {@link Result}
     */
    @RequestMapping("eduInfo")
    public Result eduInfo(){
        return statisticalService.eduInfo();
    }

    /**
     * 预订信息
     *
     * @return {@link Result}
     */
    @RequestMapping("reservationInfo")
    public Result reservationInfo(){
        return statisticalService.reservationInfo();
    }

    /**
     * 价格信息
     *
     * @return {@link Result}
     */
    @RequestMapping("priceInfo")
    public Result priceInfo(){
        return statisticalService.priceInfo();
    }

    @RequestMapping("userInfo")
    public Result userInfo(){
        return statisticalService.userInfo();
    }

}
